<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="kind.css" rel="stylesheet" type="text/css">
</head>
<body>
 <div class="d">
 <c:forEach items="${fod}" var="u">
 <table class="t1">
  <tr>
   <td><a href="#">${u}</td>
  </tr>
  </table>
  </c:forEach> 
 </div>
 <br />
  <div class="d1">
  <hr />
  <br />
   <a href="${pageContext.request.contextPath}/LoginShopCar" target="_top">进入购物车</a>
   <br />
   <br />
   <c:forEach items="${food}" var="u">
    <form action="${pageContext.request.contextPath}/DoCarServlet?&action=add&id=${u.fid}&name=${u.fname}&price=${u.fprice}" method="post" target="_top">
     <table class="t2">
      <tr>
      <td class="td1">${u.fname}</td>
      <td class="td2">${u.fprice}元</td>
      <td class="td3"><input type="submit" value="添加进购物车" id="btn" /></td>
      </tr>
      <hr />
     </table>
    </form>
   </c:forEach>
   </div>
</body>
</html>
